package com.yfp.client.service;

import com.yfp.client.domain.ActivitySignInsRules;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *
 * @description 针对表【activity_sign_ins_rules(打卡管理-打卡规则表)】的数据库操作Service
 * @createDate 2025-01-03 17:46:13
 */
public interface ActivitySignInsRulesService extends IService<ActivitySignInsRules> {

    /**
     * 根据活动id查询打卡规则列表
     *
     * @param id
     * @return
     */
    List<ActivitySignInsRules> listByActivitySignInsId(Long id);

    /**
     * 扣减剩余库存
     *
     * @param activitySignInsRulesId
     */
    void salesDeduction(Long activitySignInsRulesId);

    /**
     * 校验库存
     *
     * @param activitySignInsRulesId
     */
    Boolean checkStock(Long activitySignInsRulesId);
}
